package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DataFolderDto
 * @使用场景
 */
@Data
public class DataFolderDto extends BaseDto implements Serializable {

  /**
   * 文档夹ID
   */
  @ApiModelProperty("文档夹ID")
  private String unstructuredDataFolderId;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 文件夹名
   */
  @ApiModelProperty("文件夹名")
  private String folderName;

  /**
   * 文件夹下文件大小
   */
  @ApiModelProperty("文件夹下文件大小 ")
  private String fileSize;

  /**
   * 创建时间
   */
  @ApiModelProperty("创建时间")
  private Date createTime;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DataFolderDto that = (DataFolderDto) o;
    return (
      unstructuredDataFolderId == that.unstructuredDataFolderId &&
      operationInductionId == that.operationInductionId &&
      operateTime == that.operateTime &&
      folderName == that.folderName &&
      fileSize == that.fileSize &&
      createTime == that.createTime
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      unstructuredDataFolderId,
      operationInductionId,
      operateTime,
      folderName,
      fileSize,
      createTime
    );
  }

}
